package com.kingsalert.kingsalert.base;

import android.os.Bundle;
import android.view.WindowManager;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.kingsalert.kingsalert.util.http.HttpUtil;

public class BaseActivity extends AppCompatActivity {

    protected String page = getClass().getSimpleName();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
    }

    @Override
    protected void onResume() {
        super.onResume();
        HttpUtil.getInstance().saveBuriedPoint(page,"START","");
    }

    @Override
    protected void onPause() {
        super.onPause();
        HttpUtil.getInstance().saveBuriedPoint(page,"END","");
    }

}
